home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / 3dlib30b.zip / HDR3D.H < prev    next >
C/C++ Source or Header  |  1994-03-10  |  1KB  |  66 lines

  1. /******************************************************************************
  2. *                                    hdr3d                                    *
  3. ******************************************************************************/
  4.  
  5. #ifndef _hdr3d_h
  6. #define _hdr3d_h
  7.  
  8. #define version3dLib = "3.0";
  9.  
  10. extern const screenWidth;
  11. extern const halfWidth;
  12.  
  13. extern const double radFactor;
  14.  
  15. struct line3d {
  16.     int fromP;
  17.     int toP;
  18.   }; // line3d struct ddefinition
  19.  
  20. typedef line3d *line3dPtr;
  21.  
  22. struct screenPoints {
  23.    int sx;
  24.    int sy;
  25.   }; // screenPoints struct definition
  26.  
  27. typedef screenPoints *screenPointsPtr;
  28.  
  29. enum axisType {x, y, z};
  30.  
  31. struct point3d {
  32.    double x;
  33.    double y;
  34.    double z;
  35.   }; // point 3d struct definition
  36.  
  37. typedef point3d *point3dPtr;
  38.  
  39. extern point3d zeroPoint;
  40.  
  41. extern int xAxis;
  42. extern int yAxis;
  43.  
  44. #ifdef _WINDOWS_
  45. extern unsigned int maxX;
  46. extern unsigned int maxY;
  47. extern unsigned int maxColor;
  48. #endif
  49.  
  50. #ifdef _OS2_
  51. unsigned int maxX;
  52. unsigned int maxY;
  53. unsigned int maxColor;
  54. #endif
  55.  
  56. extern double cosine_x;
  57. extern double cosine_y;
  58. extern double sine_x;
  59. extern double sine_y;
  60.  
  61. extern axisType currentAxis;
  62.  
  63. extern "C" void calcAxisDeg();
  64.  
  65. #endif
  66.